<template>
	<view class="claim-item">
		<view class="benefits-info">
			<view class="name">
				新人5折优惠 {{ item }}
			</view>
			<view class="time">
				2023-09-04至2023-09-11
			</view>
		</view>
		<view :class="true? 'btn-box' : 'can-use'">
			<text>{{ true? '领取' : '去使用' }}</text>
		</view>
	</view>
</template>

<script>
	export default {
		data(){
			return {
				
			}
		},
		props: {
			item: [String, Object, Number]
		}
	}
</script>

<style scoped lang="scss">
.claim-item{
	width: 678rpx;
	height: 216rpx;
	background: #FFFFFF;
	border-radius: 8rpx;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 32rpx;
	font-family: PingFang SC-Regular, PingFang SC;
	font-weight: 400;
	color: #363636;
	padding: 0 26rpx 0 56rpx;
	border-bottom: 2rpx solid #EFEFEF;
	.benefits-info{
		.time{
			margin-top: 22rpx;
			font-size: 28rpx;
		}
	}
	.btn-box{
		width: 200rpx;
		height: 82rpx;
		background: linear-gradient(180deg, #6B3BEC 0%, #8E66F5 100%);
		display: flex;
		justify-content: center;
		align-items: center;
		font-size: 28rpx;
	}
	.can-use{
		width: 196rpx;
		height: 78rpx;
		background: #FFFFFF;
		border: 2rpx solid #7143ED;
		color: #7143ED;
	}
}
</style>